package co.fitstart.market.dao;

import com.demo2do.core.persistence.annotation.Dynamic;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;

import co.fitstart.entity.market.ParticipationQrcode;
import co.fitstart.entity.user.User;

/**
 * 
 * @author dan
 *
 */
@Dynamic("hibernate")
public interface ParticipationDao {
    
    /**
     * 
     * @param signin
     * @param user
     * @return
     */
    @Query("FROM ParticipationQrcode WHERE disabled = false AND signin = :signin AND user = :user")
    public ParticipationQrcode loadParticipationQrcode(@Variable("signin") boolean signin, @Variable("user") User user);

}
